import React, {Component} from 'react';
import {AppRegistry, LogBox} from 'react-native';
import {Provider} from 'mobx-react'
//import RootStore from "./src/store/RootStore";
import {AppNavigator} from "./src/navigation/AppNavigator";
import {createAppContainer} from "react-navigation";
import Toast from 'react-native-root-toast';

const AppContainer = createAppContainer(AppNavigator);

export default class App extends Component {

  render() {
    //Toast.show(this.props.token)
    token = this.props.token
    return (
      <Provider>
        <AppContainer/>
      </Provider>
    );
  }
}

//LogBox.ignoreAllLogs(true)
AppRegistry.registerComponent(
  'MyReactNativeApp',
  () => App
);

global.token = '';